package com.sky.mapper;

import com.sky.entity.Dish;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface UserDishMapper {

    //    根据分类id查询菜品
    @Select("select * from dish where category_Id = #{categoryId}")
    List<DishVO> showByCateId(Long categoryId);

}
